<template>
	<view class="page">
		<view class="content">
			<view class="main">
				<view class="top">
					<u--text text="*" color="#0256FF" bold size=24></u--text>
					<u--text text="输入VIN码" bold size=24></u--text>
				</view>
				<view class="">
					<u-input fontSize=20 placeholder="请输入车架号（必填）" border="bottom" v-model="value"
						@change="change"></u-input>
				</view>
			</view>
			<!-- tips -->
			<u--text text="不会泄露您的个人信息，仅用于适配商品" size=12 margin="20rpx 0 100rpx 60rpx" color="#AAAAAA"></u--text>
			<!-- button -->
			<view class="button">
				<u-button text="识别" color="#2979ff" shape="circle" :disabled="disabled" size="middle"></u-button>
			</view>



		</view>
	</view>
</template>
<script>
export default {
	data() {
		return {
			value: "",
			disabled: true
		}
	},
	methods: {
		change() {
			console.log(this.value);
			this.value.length > 0 ? this.disabled = false : this.disabled = true
		}
	}
}


</script>
<style lang="scss" scoped>
.content {
	padding: 80rpx 30rpx;

	.main {
		background-color: white;
		border-radius: 20rpx;
		padding: 40rpx 60rpx;

		.top {
			display: flex;
			margin-bottom: 20rpx;

			::v-deep .u-text__value {
				white-space: nowrap !important;
				align-self: flex-end;
			}

			::v-deep .u-text {
				flex: 0;
			}
		}
	}

	.button {
		width: 460rpx;
		margin: 0 auto;
	}
}
</style>
